Table of Contents

Class: TypeManager .\src\TW\Database\DataModel.py

A family of similar recordtypes; handles caching

Base Classes   
SEF.Service
Methods   
__class_init__
_cacheRecord
_getFromCache
_getKeysFor
_getType
_loadDataFor
_setTypeFor
_unsetTypeFor
getItem
  __class_init__ 
__class_init__ (
        thisClass,
        newClass,
        next,
        )

  _cacheRecord 
_cacheRecord ( self,  record )

  _getFromCache 
_getFromCache ( self,  keyMapping )

Exceptions   
KeyError, ( "No unique keys supplied", keyMapping )
  _getKeysFor 
_getKeysFor ( self,  mapping )

  _getType 
_getType ( self,  typeName )

  _loadDataFor 
_loadDataFor (
        self,
        record,
        typeName,
        )

  _setTypeFor 
_setTypeFor (
        self,
        record,
        typeName,
        )

  _unsetTypeFor 
_unsetTypeFor (
        self,
        record,
        typeName,
        )

  getItem 
getItem ( self,  **keyMapping )

Look up record using keyword arguments

Note that this may return nonexistent records; i.e. you must call the returned record's exists() or hasType() method if you want to be sure it exists.


Table of Contents

This document was automatically generated on Tue Mar 05 10:33:44 2002 by HappyDoc version WORKING